<template>
  <div>
    <iframe :src="getURL" ref="myIframe" width="100%" height="100%" frameborder="no" border="0"></iframe>
  </div>
</template>

<script>


export default {
  computed:{
    getURL () {
      const id = this.$route.params.url
      const list = JSON.parse(localStorage.getItem("content"))
      const obj = list.find(item => item.id===id)
      return obj?obj.url:''
    }
  },
}
</script>

<style scoped>
div {
  overflow: hidden;
}

</style>
